package com.mall.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mall.entity.User;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface UserMapper extends BaseMapper<User> {
    int insert(User user);

    int insertSelective(User user);


    int updateSelective(User user);

    User selectByUserId(String userId);

    User selectByPhone(String phone);

    User selectByPhoneAndPassword(String phone,String password);


    int insertDefaultAvatar(String url);
}